package chpt04;

import chpt04.shapes.Point;


public class SimpleCloneTest {

	public static void main(String[] args) 
			throws CloneNotSupportedException {
		Point p1 = new Point(1.0, 2.0);
		p1.x = 5.0;
		p1.y = 7.0;
		Point p2 = p1.clone();
		System.out.println(p1 == p2);  // false
		System.out.println(p1.x+" "+p1.y);
		System.out.println(p2.x+" "+p2.y);
	
	}

}
